<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
    <title>社团之家 | Home </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<style>.size{height:200px;width:200px;}</style>>
    <link href="/study/Public/css/style.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/study/Public/css/owl.carousel.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/study/Public/css/magnific-popup.css">
    <link href="/study/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script type="text/javascript" src="/study/Public/bootstrap/js/jquery.min.js"></script>
    <script src="/study/Public/bootstrap/js/bootstrap.min.js"></script>

    <script src="/study/Public/js/owl.carousel.js"></script>
    <script>
        $(document).ready(function() {
            $("#owl-demo").owlCarousel({
                items : 4,
                lazyLoad : true,
                autoPlay : true,
                navigation : true,
                navigationText : ["", ""],
                rewindNav : false,
                scrollPerPage : false,
                pagination : false,
                paginationNumbers : false,
            });
        });
    </script>
    <link type="text/css" rel="stylesheet" href="/study/Public/css/jquery.mmenu.all.css" />
    <script type="text/javascript" src="/study/Public/js/jquery.mmenu.js"></script>
    <script type="text/javascript">
        //	The menu on the left
        $(function() {
            $('nav#menu-left').mmenu();
        });
    </script>
</head>
<body>
<!-- start header -->
<div class="header_bg">
    <div class="wrap">
        <div class="header">
            <div class="logo">
                <a href="index.html">
                    <img src="/study/Public/images/lg.png" alt=""/>
                    <h1>社团之家</h1>
                    <div class="clear"> </div>
                </a>
            </div>
            
            <div class="clear"> </div>
        </div>
    </div>
</div>

<div class="header_btm">
    <div class="wrap">
  
        <div id="page">
            <div id="header">
                <a class="navicon" href="#menu-left"> </a>
            </div>
            <nav id="menu-left">
                <ul>
                    <li class="active"><a href="index.html">Home</a></li>
                    <li><a href="stshow.html">社团展示</a></li>
                    <li><a href="hdshow.html">活动展示</a></li>
                    <li><a href="dtshow">新闻动态</a></li>
                    <?php if(session('username') != null): ?><li><a href="myinfo.html">个人中心</a></li>
                    <?php else: ?> <li><a href="index.html">个人中心</a></li><?php endif; ?>
                    <li><a href="contact.html">联系我们</a></li>
                    <?php if(session('username') == null): ?><li><a href="#regModal" data-toggle="modal"  data-target="#regModal">注册</a></li>
                        <li><a  href="#regModal" data-toggle="modal"  data-target="#myModal2">登录</a></li>
                        <?php else: ?>
                        <li><a href="logout">注销</a></li>
                        <li class="active"><a href=""><?php echo '欢迎'.session('username') ?></a></li><?php endif; ?>
                </ul>
            </nav>
        </div>
        <div class="header_sub">
            <div class="h_menu">
                <ul>
                    <li class="active"><a href="index.html">Home</a></li>
                    <li><a href="stshow.html">社团展示</a></li>
                    <li><a href="hdshow.html">活动展示</a></li>
                    <li><a href="dtshow">新闻动态</a></li>
                    <?php if(session('username') != null): ?><li><a href="myinfo.html">个人中心</a></li>
                    <?php else: ?> <li><a href="index.html">个人中心</a></li><?php endif; ?>
                    <li><a href="contact.html">联系我们</a></li>
                    <?php if(session('username') == null): ?><li><a href="#regModal" data-toggle="modal"  data-target="#regModal">注册</a></li>
                        <li><a  href="#regModal" data-toggle="modal"  data-target="#myModal2">登录</a></li>
                        <?php else: ?>
                        <li><a href="logout">注销</a></li>
                        <li class="active"><a href=""><?php echo '欢迎'.session('username') ?></a></li><?php endif; ?>
                </ul>
            </div>
            <div class="h_search">
                <form>
                    <input type="text" value="" placeholder="search something...">
                    <input type="submit" value="">
                </form>
            </div>
            <div class="clear"> </div>
        </div>
    </div>
</div>
<div class="container">
<div class="row row-offcanvas row-offcanvas-right">
<div class="col-xs-12 col-sm-9">
<div class="row text-center">
<div class="col-xs-12 col-lg-12 mlist">
<div class="col-xs-15 col-sm-12 col-lg-9">
<h2 >我的社团</h2>
<ul class="list-inline row text-center">
<?php if(is_array($group)): $i = 0; $__LIST__ = $group;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$to): $mod = ($i % 2 );++$i;?><li class="col-xs-5 col-sm-4 col-lg-3">
<img class="size" src="/study/Public/Uploads/photo/<?php echo ($to["photo"]); ?>">
<p><a href="stxq?id=<?php echo ($to["gid"]); ?>"><?php echo ($to["groupname"]); ?></a><br><a href="tcst?id=<?php echo ($to["mid"]); ?>">退出该社团</a></p>
</li><?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
<h2 >我的活动</h2>
<ul class="list-inline row text-center">
<?php if(is_array($stuprac)): $i = 0; $__LIST__ = $stuprac;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$yo): $mod = ($i % 2 );++$i;?><li class="col-xs-5 col-sm-4 col-lg-3">
<img class="size" src="/study/Public/Uploads/photo/<?php echo ($yo["pfile"]); ?>">
<p><a href="stxq?id=<?php echo ($yo["pid"]); ?>"><?php echo ($yo["pname"]); ?></a><br><a href="tchd?id=<?php echo ($yo["sid"]); ?>">退出该活动</a></p>
</li><?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
</div>
<div class="col-xs-5 col-sm-4 col-lg-3">
<h2 >我的信息</h2>
<table class='table table-bordered'>
<?php if(is_array($practices)): $i = 0; $__LIST__ = $practices;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
		<th>用户名</th>
		<th><?php echo ($vo["username"]); ?></th>
		</tr><tr>
		<th>性别</th>
		<th><?php if($vo["tid"] == 1): ?>男
		<?php else: ?>女<?php endif; ?></th>
		</tr><tr>
		<th>电话</th>
		<th><?php echo ($vo["tele"]); ?></th>
		</tr><tr>
		<th>头像</th>
		<th><img src="/study/Public/Uploads/photo/<?php echo ($vo["photo"]); ?>" alt="头像不存在" class="size"></th>
		</tr><tr>
		<th>简介</th>
		<th><?php echo ($vo["intro"]); ?></th>
		</tr><tr>
		<th>邮箱</th>
		<th><?php echo ($vo["email"]); ?></th>
		</tr><tr>
		<th>学号</th>
		<th><?php echo ($vo["stunum"]); ?></th>
		</tr>
		<a href="updateinfo?id=<?php echo ($vo["uid"]); ?>">修改个人信息</a><br>
		<?php if(is_array($mem)): $i = 0; $__LIST__ = $mem;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ro): $mod = ($i % 2 );++$i; if($ro["state"] == 2): ?><a href="fzr?id=<?php echo ($ro["gid"]); ?>">社团负责人管理</a>
			</else><a href="index"></a><?php endif; endforeach; endif; else: echo "" ;endif; endforeach; endif; else: echo "" ;endif; ?>
</table>
</div>
<!-- <ul class="list-inline row text-center">
<?php if(is_array($practices)): $i = 0; $__LIST__ = $practices;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="col-xs-5 col-sm-4 col-lg-3">
<img class="size" src="/study/Public/Uploads/photo/<?php echo ($vo["photo"]); ?>">
<p><a href="stxq?id=<?php echo ($vo["gid"]); ?>"><?php echo ($vo["groupname"]); ?></a></p>
</li><?php endforeach; endif; else: echo "" ;endif; ?>
</ul> --></div></div></div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close"
                        data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    用户注册
                </h4>
            </div>
            <div class="modal-body">
                <form  method="post" action="register" enctype="multipart/form-data" class="form-horizontal">
        <div class="form-group">
        <label for="inputName" class="col-md-2 control-label">用户名</label>
        <div class="col-md-10">
        <input type="text" class="form-control" id="username"  name="username"  placeholder="Name"/>
        </div></div>
        <div class="form-group">
        <label for="inputpass" class="col-md-2 control-label">密码</label>
        <div class="col-md-10">
        <input type="password" class="form-control" id="pass"  name="pass"  placeholder="pass"/>
    </div>
    </div>
     <div class="form-group">
        <label for="inputpass" class="col-md-2 control-label">再次输入密码</label>
        <div class="col-md-10">
        <input type="password" class="form-control" id="pass2"  name="pass2" value="<?php echo ($user["pass"]); ?>" placeholder="pass2"/>
    </div>
    </div> 
<div class="form-group">
        <label for="inputName" class="col-md-2 control-label">真实性名</label>
        <div class="col-md-10">
        <input type="text" class="form-control" id="realname"  name="realname"  placeholder="Name"/>
    </div>
    </div>
<div class="form-group">
        <label for="Email" class="col-md-2 control-label">邮箱</label>
        <div class="col-md-10">
        <input type="email" class="form-control" id="email"  name="email"  placeholder="email"/>
    </div>
    </div>
    <div class="form-group">
        <label for="tele" class="col-md-2 control-label">电话</label>
        <div class="col-md-10">
        <input type="tel" class="form-control" id="tele"  name="tele"  placeholder="tele"/>
    </div>
</div>
<div class="form-group">
        <label for="pic" class="col-md-2 control-label">头像</label>
        <div class="col-md-10">
            <input type="file" name="photo" />
        </div>
    </div>
       
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="submit" class="btn btn-primary">注册</button>
            </div>

    </div>
        </div>
    </div>   
</div><!-- /.modal-content -->

 </form>


</body>
</html>